package com.retailshop.shopuser.common;

import com.retailshop.shopuser.entity.UserNo;
import com.retailshop.shopuser.mapper.UserNoMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.util.List;

public class StatsShareUserNo implements Serializable {
    @Autowired
    UserNoMapper userNoMapper;

    public List<UserNo> getShare(int userNoId){

        List<UserNo> userNoList=  userNoMapper.getReCommender(userNoId);
        if(userNoList==null){
            return null;
        }

        return userNoList;
    }
}
